package com.en.sharing.floats;

/**
 * 浮点测试
 *
 * @author 付晓飞
 * @date 2024/3/13 7:27 下午
 */
public class FloatPlusTest {

    public static void main(String[] args) {
        float a = 0.01f;
        float b = 1.43f;
        System.out.println(a + b);
        double c = 0.023d;
        double d = 1.43d;
        System.out.println(c + d);
        double e = 0.023d;
        double f = 1.477d;
        System.out.println(e + f);
        double g = 0.023d;
        double h = 1.476d;
        System.out.println(g + h);


    }

}
